package com.slofzx.nuoda.evaluation.project.service;

import com.slofzx.nuoda.evaluation.project.dto.BatchInfoDTO;
import com.slofzx.nuoda.evaluation.project.dto.ProjectInfoDTO;
import com.slofzx.nuoda.evaluation.project.vo.BatchInfoNameVO;
import com.slofzx.nuoda.evaluation.project.vo.BatchInfoVO;
import com.slofzx.nuoda.common.enums.ServiceResult;
import org.springframework.http.ResponseEntity;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * 评价任务基本信息表(BatchInfo)表服务接口
 *
 * @author nuoda
 * @since 2023-10-20 09:08:55
 */
public interface BatchInfoService {

    BatchInfoVO queryById(String id);

    List<BatchInfoVO> queryList(BatchInfoDTO dto);

    ServiceResult create(BatchInfoDTO dto);

    ServiceResult update(BatchInfoDTO dto);

    /**
     * 通过主键删除数据
     *
     * @param id 主键
     * @return 操作结果
     */
    ServiceResult deleteById(String id);
    /**
     * 导入excel数据
     * */
    ServiceResult importExcel(String fileId, String batchId);
    /**
     * 编辑任务基本信息及任务公共数据
     * */
    ServiceResult editCommonData(BatchInfoDTO dto);
    /**
     * 导出Excel
     * */
    ResponseEntity<byte[]> exportExcel(HttpServletRequest request, ProjectInfoDTO projectInfoDTO);

    List<BatchInfoNameVO> queryNameList();

    ResponseEntity<byte[]> downloadMergeExcel(HttpServletRequest request, String batchId, String templateId);

    ResponseEntity<byte[]> batchExportExcel(HttpServletRequest request, ProjectInfoDTO projectInfoDTO);
}
